home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / disk / misc / TransADF.lha / Source / main.h < prev    next >
C/C++ Source or Header  |  1997-11-30  |  1KB  |  67 lines

  1. #ifndef TRANSADF_MAIN_H
  2. #define TRANSADF_MAIN_H
  3.  
  4.  
  5. #ifndef EXEC_TYPES_H
  6. #include <exec/types.h>
  7. #endif /* EXEC_TYPES_H */
  8.  
  9. #ifndef DEVICES_TRACKDISK_H
  10. #include <devices/trackdisk.h>
  11. #endif /* DEVICES_TRACKDISK_H */
  12.  
  13. #ifndef DOS_DOS_H
  14. #include <dos/dos.h>
  15. #endif /* DOS_DOS_H */
  16.  
  17. #ifdef COMPILE_RT
  18. #  ifndef EXEC_LIBRARIES_H
  19. #  include <exec/libraries.h>
  20. #  endif /* EXEC_LIBRARIES_H */
  21. extern struct Library *ZBase;
  22. #  include "z_pragmas.h"
  23. #endif /* COMPILE_RT */
  24.  
  25.  
  26. /*---------------------------------*/
  27. /* Global variables and structures */
  28. /*---------------------------------*/
  29.  
  30. /* Constant strings */
  31. extern const char breakText[];
  32. extern const char TA_Template[];
  33.  
  34. /* Standard IO Handles */
  35. extern BPTR StdIn;
  36. extern BPTR StdOut;
  37. extern BPTR StdErr;
  38.  
  39. /* Program name */
  40. extern STRPTR ProgName;
  41.  
  42. /* This will be passed to the read/write routines */
  43. struct ADF_Packet {
  44.   /* Track Disk IO */
  45.   struct IOExtTD *diskReq;
  46.   ULONG  diskUnit;
  47.   
  48.   /* Amiga Disk File */
  49.   BPTR   ADFile;
  50.   STRPTR ADFileName;
  51.  
  52.   /* Track info */
  53.   ULONG  startTrack;
  54.   ULONG  endTrack;
  55. };
  56.  
  57.  
  58. /*---------------------*/
  59. /* Function prototypes */
  60. /*---------------------*/
  61.  
  62. void initGlobals (void);
  63. void cleanExit (ULONG rc, LONG rc2);
  64.  
  65.  
  66. #endif /* TRANSADF_MAIN_H */
  67.